<!DOCTYPE html>
<html lang="zh">
<head>
    <!-- 头部信息 -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>沉浸式音乐播放器</title>
    <link rel="stylesheet" href="/static/styles.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&display=swap" rel="stylesheet">
    <!-- 引入 Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
    <!-- 侧边栏展开按钮 -->
    <button id="sidebar-toggle" class="sidebar-toggle"><i class="fas fa-bars"></i></button>

    <div class="app-container">
        <header>
            <h1><i class="fas fa-music"></i> 沉浸式音乐播放器</h1>
        </header>
        <main>
            <section id="search-section" class="glass-effect">
                <div class="search-container">
                    <input type="text" id="search-input" placeholder="搜索你喜欢的音乐...">
                    <button id="search-button"><i class="fas fa-search"></i></button>
                </div>
                <div id="error-message" class="error-message"></div>
            </section>
            <section id="results-section">
                <div id="search-results" class="search-results"></div>
            </section>
        </main>
        <footer>
            <p>&copy; 2024 沉浸式音乐播放器. 保留所有权利。</p>
        </footer>
    </div>

    <!-- 添加遮罩层 -->
    <div id="sidebar-overlay" class="sidebar-overlay"></div>

    <!-- 侧边栏 -->
    <section id="player-section" class="player-hidden">
        <!-- 侧边栏关闭按钮 -->
        <button id="sidebar-close-button" class="close-button"><i class="fas fa-times"></i></button>
        <div class="player-container">
            <div class="album-art">
                <img id="song-cover" src="/static/default-cover.jpg" alt="专辑封面">
            </div>
            <div class="player-info">
                <h2 id="song-title">未选择歌曲</h2>
                <p id="song-artist">-</p>
                <audio id="audio-player"></audio>
                <!-- 进度条和时间显示 -->
                <div class="progress-container">
                    <span id="current-time">00:00</span>
                    <input type="range" id="progress-bar" value="0" min="0" max="100">
                    <span id="duration">00:00</span>
                </div>
                <div class="player-controls">
                    <button id="prev-button" class="control-button"><i class="fas fa-step-backward"></i></button>
                    <button id="play-pause-button" class="control-button"><i class="fas fa-play"></i></button>
                    <button id="next-button" class="control-button"><i class="fas fa-step-forward"></i></button>
                </div>
            </div>
        </div>
        <div class="lyrics-container">
            <h3>歌词</h3>
            <div class="lyrics">
                <p id="lyrics">暂无歌词</p>
            </div>
        </div>
    </section>

    <script src="/static/app.js"></script>
</body>
</html>
